import 'package:kepu/generated/json/base/json_field.dart';
import 'package:kepu/generated/json/plant_list_by_type_entity.g.dart';
import 'dart:convert';
export 'package:kepu/generated/json/plant_list_by_type_entity.g.dart';

@JsonSerializable()
class PlantListByTypeEntity {
	late int code;
	late String msg;
	late List<PlantListByTypeData> data;

	PlantListByTypeEntity();

	factory PlantListByTypeEntity.fromJson(Map<String, dynamic> json) => $PlantListByTypeEntityFromJson(json);

	Map<String, dynamic> toJson() => $PlantListByTypeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PlantListByTypeData {
	late int id;
	late String name;
	late String image;
	late String description;
	late String region;
	late String type;

	PlantListByTypeData();

	factory PlantListByTypeData.fromJson(Map<String, dynamic> json) => $PlantListByTypeDataFromJson(json);

	Map<String, dynamic> toJson() => $PlantListByTypeDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}